package com.pzb.market.service.impl;

import com.pzb.market.domain.MkCoupon;
import com.pzb.market.mapper.MkCouponMapper;
import com.pzb.market.service.IMkCouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 优惠券Service业务层处理
 * 
 * @author pzb
 * @date 2021-10-11
 */
@Service
public class MkCouponServiceImpl implements IMkCouponService 
{
    @Autowired
    private MkCouponMapper mkCouponMapper;


    /**
     * 查询优惠券列表
     * 
     * @param extAppid 优惠券
     * @return 优惠券
     */
    @Override
    public List<MkCoupon> selectMkCouponList(String extAppid,String openid)
    {
        return mkCouponMapper.selectMkCouponList(extAppid,openid);
    }

    /**
     * 查询优惠券
     *
     * @param id 优惠券主键
     * @return 优惠券
     */
    @Override
    public MkCoupon selectMkCouponById(Long id)
    {
        return mkCouponMapper.selectMkCouponById(id);
    }
    /**
     * 修改优惠券
     *
     * @param mkCoupon 优惠券
     * @return 结果
     */
    @Override
    public int updateMkCoupon(MkCoupon mkCoupon)
    {
        return mkCouponMapper.updateMkCoupon(mkCoupon);
    }



}
